home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 8: LINUX Games
/
Linux Cubed Series 8 - LINUX Games.iso
/
games
/
strategy
/
vga_card.000
/
vga_cardgames-1.3.1.tar
/
vga_cardgames
/
README
< prev
next >
Wrap
Text File
|
1995-03-06
|
8KB
|
240 lines
=================
Card Games v1.3.1
=================
This package contains a collection of simple card games using a VGA
mode (640x480x16) and mouse.
------------
Requirements
------------
* svgalib (tested with version 1.24).
* An svgalib compatible mouse.
------------
Installation
------------
* Edit the Makefile, setting/changing CARDSMOUSE, CARDSMOUSEDEFAULTRATE,
BINDIR, LIBDIR and PREFIX, if necessary.
- CARDSMOUSE should be set to use the mouse_ functions, rather than
vga_setmousesupport(). This allows console switching for svgalib
versions earlier than 1.20. If problems are encountered with
console switching, undefine this. You should not need to define
it if you are using svgalib 1.20 or later.
- CARDSMOUSEDEFAULTRATE allows the mouse sampling rate to be changed
from the default, if CARDSMOUSE is also defined.
- The PREFIX is to avoid clashes with other programs with the same
name (such as the X11 game spider). I suggest using vga_ or nothing
as the prefix.
- USEGETPIXEL can be set to use the vga_getpixel() function instead of
maintaining a shadow copy of the screen. Thus, it will result in less
memory being used. For svgalib v1.24 and earlier this should not be
used, because it doesn't work properly. Hopefully this will work in a
future version of svgalib. If USEGETPIXEL is defined, screen redrawing
is not available. This is probably not an issue for most people.
However, I'll look into this if/when vga_getpixel() works.
* Type 'make'.
* As root, type 'make install'.
------
Thanks
------
* Harm Hanemaayer <hhanemaa@cs.ruu.nl>,
Michael Weller <eowmob@exp-math.uni-essen.de>,
and other contributors for svgalib.
* Rob Malouf <malouf@csli.stanford.edu> for (unknowingly) contributing
the font from dvgt (a very nice dvi viewer).
* Jacques Ge'linas <gelinas@cmr.ca> for reporting the problem of the
non-existent mouse and providing patches for klondike for cycling
the stock which prompted the 1.1 changes.
* <hymowitz@midget.twoson.edu> for prompting the addition of the ability
to switch consoles.
* Laszlo <root@light-house.gts.org> for reporting the mouse pointer
display bug and suggesting I use less CPU time and a better red.
-----
Notes
-----
* In addition to the mouse, there are keyboard shortcuts for the grey
buttons presented on the right of the screen: n for New Game, r for
Restart, u for Undo, q for Quit. These allow you to quit even if you
don't have a mouse. As a bonus, the interrupt character (often ^C)
also works.
* Console switching is enabled using the usual mechanism (Alt-Fn) if
the programs were compiled with CARDSMOUSE defined, or if svgalib 1.20
or later is used.
* Screen redrawing is available using ^L. This feature may be useful if
the screen gets corrupted as a result of console switching.
----------
Known Bugs
----------
* The playing card images aren't very good.
* The "Oh Hell!" computer players are pretty stupid.
------
Wanted
------
Somebody to create good looking artwork for this game, particularly
the playing cards. For the cards, please restrict yourselves to a
width of 53 pixels and the colours white, black, red, blue and
yellow. Send any image type (that the pbm tools know about), or my
playing card format.
It has been suggested that I use the cards from xpat or xbmcards.
I've only looked into this briefly, but the cards would have to be
resized and I'm not sufficiently satisfied with the results without
further editing.
----------------------
Potential Improvements
----------------------
The following will invalidate compatibility with older versions of
svgalib:
* Investigate keyboard_ functions so we can use select() rather than
polling the keyboard/mouse (this would require at least svgalib
1.20, assuming it works).
--------
Feedback
--------
All feedback should be sent to evan@cs.mu.oz.au.
---------
ChangeLog
---------
1.0 25 Apr 1994 First Linux version completed:
Oh Hell! v1.0, Spider v1.0, Klondike v1.0,
Solitaire v1.0
1.1 5 May 1994 Oh Hell! v1.1, Spider v1.1, Klondike v1.1,
Solitaire v1.1
1.2 27 Jun 1994 Oh Hell! v1.2, Spider v1.2, Klondike v1.2,
Solitaire v1.2
1.3 26 Feb 1995 Oh Hell! v1.3, Spider v1.3, Klondike v1.3,
Solitaire v1.3
1.3.1 6 Mar 1995 Oh Hell! v1.3, Spider v1.3, Klondike v1.3,
Solitaire v1.3
#######################################################################
==========
Game Notes
==========
--------
Oh Hell!
--------
The aim of Oh Hell! is to win exactly the number of tricks that you
bid.
First bid the number of tricks you expect to win (using the
appropriate grey button). There is no restriction on the sum of all
the bids (it's ok for it to be the total number of tricks).
The card in the middle of the table indicates the trump suit. The
last hand (with 13 cards) is played with no trumps.
If the bid is made, the player scores 10 + #tricks won.
ChangeLog:
1.0 25 Apr 1994 First Linux version completed
1.1 5 May 1994 Keyboard shortcuts for major buttons added
Minor code reorganization
1.2 27 Jun 1994 Console switching added
Font loading added
1.3 26 Feb 1995 Colours adjusted
Mouse pointer display bug fixed
Less CPU used waiting for user input
Added vga_getpixel() support to vga16.c
Added screen redrawing
------
Spider
------
The standard solitaire game of spider, much like the X11 version.
The primary differences compared to the X11 version are the lack of
hint and scoring functions, and the left button is used for
"dragging" cards as well as selecting.
If the player clicks on a card, the game will try to decide where the
card should go (if it can go anywhere). If the player doesn't agree,
the card must be "dragged" to its intended destination.
ChangeLog:
1.0 25 Apr 1994 First Linux version completed
1.1 5 May 1994 Keyboard shortcuts for buttons added
Minor code reorganization
1.2 27 Jun 1994 Console switching added
Font loading added
1.3 26 Feb 1995 Colours adjusted
Mouse pointer display bug fixed
Less CPU used waiting for user input
Added vga_getpixel() support to vga16.c
Added screen redrawing
--------
Klondike
--------
The standard solitaire game of klondike.
By default, this version progresses through the stock one card at a
time and only goes through the stock once.
Using the command option -m N, it can be changed to progressing through
the stock N cards at a time, and going through the stock N times. A
common way of playing klondike can be emulated with -m 3.
Using the command option -c, the stock will be gone through an
infinite number of times. Pressing the mouse button on the empty
stock each time resets it. Using this option and not -m is probably
cheating.
ChangeLog:
1.0 25 Apr 1994 First Linux version completed
1.1 5 May 1994 Keyboard shortcuts for buttons added
Minor code reorganization
Added options -c and -m
1.2 27 Jun 1994 Console switching added
Font loading added
1.3 26 Feb 1995 Colours adjusted
Mouse pointer display bug fixed
Less CPU used waiting for user input
Added vga_getpixel() support to vga16.c
Added screen redrawing
---------
Solitaire
---------
The first solitaire game I was ever taught. I've never seen it
described anywhere, so I don't know its name. If anyone does know its
name, please send me mail and tell me.
Unlike the previous two solitaire games, in this one a card may only
be put on the card with the next highest rank in the same suit.
However, any card which is face up may be moved.
Like klondike, only kings may be moved into empty columns.
The aim is to get the each suit into a single column, K down to A.
ChangeLog:
1.0 25 Apr 1994 First Linux version completed
1.1 5 May 1994 Keyboard shortcuts for buttons added
Minor code reorganization
1.2 27 Jun 1994 Console switching added
Font loading added
1.3 26 Feb 1995 Colours adjusted
Mouse pointer display bug fixed
Less CPU used waiting for user input
Added vga_getpixel() support to vga16.c
Added screen redrawing